package edu.seu.mart.dao.impl;

import edu.seu.mart.dao.BaseDao;
import edu.seu.mart.dao.IAddressDao;
import edu.seu.mart.model.Address;

import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("addressDao")
public class AddressDao extends BaseDao<Address> implements IAddressDao {

    @Override
    public List<Address> findUserAddress(int userId) {
        return this.list("from Address where user_id = '" + userId + "'");
    }
}


